patches: add clean-win-crates.patch
authorLuca Bruno <lucab@debian.org>
Sun, 14 Feb 2016 15:09:38 +0000 (16:09 +0100)
committerLuca Bruno <lucab@debian.org>
Sun, 14 Feb 2016 15:11:27 +0000 (16:11 +0100)
debian/patches/clean-win-crates.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/clean-win-crates.patch b/debian/patches/clean-win-crates.patch
new file mode 100644 (file)
index 0000000..b03d73e
--- /dev/null
@@ -0,0 +1,45 @@
+Fromm: Luca Bruno <lucab@debian.org>
+Description: Remove extra dependencies for Windows
+ Some crates incorrectly wants to build Windows dependencies also
+ on Linux. As we don't want to build/embed those, we clean them
+ here.
+Forwarded: not-needed
+--- a/deps/time-0.1.34/Cargo.toml
++++ b/deps/time-0.1.34/Cargo.toml
+@@ -13,8 +13,8 @@
+ [dependencies]
+ libc = "0.2.1"
+-winapi = "0.2.0"
+-kernel32-sys = "0.2.0"
++#winapi = "0.2.0"
++#kernel32-sys = "0.2.0"
+ rustc-serialize = { version = "0.3", optional = true }
+ [dev-dependencies]
+--- a/deps/filetime-0.1.7/Cargo.toml
++++ b/deps/filetime-0.1.7/Cargo.toml
+@@ -14,8 +14,8 @@
+ [dependencies]
+ libc = "0.2"
+-kernel32-sys = "0.1"
+-winapi = "0.2"
++#kernel32-sys = "0.1"
++#winapi = "0.2"
+ [dev-dependencies]
+ tempdir = "0.3"
+--- a/deps/filetime-0.1.7/src/lib.rs
++++ b/deps/filetime-0.1.7/src/lib.rs
+@@ -35,8 +35,8 @@
+ //! ```
+ extern crate libc;
+-extern crate winapi;
+-extern crate kernel32;
++#[cfg(windows)] extern crate winapi;
++#[cfg(windows)] extern crate kernel32;
+ #[cfg(unix)] use std::os::unix::prelude::*;
+ #[cfg(windows)] use std::os::windows::prelude::*;
index fe1579be812a2c06c483202c12eddc4299eedf90..d1ce6142cb72cbd0c8644f0e164890bedddbf4b9 100644 (file)
@@ -1,2 +1,3 @@
 clean-cargo-deps.patch
 libgit2-fixes.patch
+clean-win-crates.patch